//
//  SuperNavVC.m
//  YZZX
//
//  Created by Easaa on 15/3/20.
//  Copyright (c) 2015年 Easaa. All rights reserved.
//

#import "SuperNavVC.h"

@interface SuperNavVC ()

@end

@implementation SuperNavVC

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    //设置导航栏的固定色值
    self.navigationController.navigationBar.barTintColor = RGBCOLOR(252, 115, 148);
    
    self.navigationController.navigationBar.barTintColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"NavigationBar_Right_5"]];
    //[self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"NavigationBar_Right_5.png"] forBarMetrics:UIBarMetricsDefault];
    
    

    // Do any additional setup after loading the view.
    
    //设置导航栏的固定色值
  // self.navigationBar.barTintColor = RGBCOLOR(252, 115, 148);
    
    
    //对当前色值做一个渲染
    //self.navigationBar.backgroundColor = [UIColor redColor];
    
   // self.navigationController.navigationBarHidden=YES;
//    
//    隐藏：
   // [[self navigationController] setNavigationBarHidden:YES animated:YES];
    
    
//    复制代码显示：
//    [[self navigationController] setNavigationBarHidden:NO animated:YES];
    
    
    

    
    
    
    
}



-(void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
{
//    UIViewController *VC = (UIViewController *)[self.viewControllers lastObject];
//    NSString *VCStr = [NSString stringWithFormat:@"%@",VC.superclass];
//    BOOL isHideTableBarVC = [VCStr isEqualToString:@"SuperHideTableBarVC"];
//    if (_isBusy&&isHideTableBarVC) return;
//    
//    [self ViewCanUserInteractionEnabled];
    [super pushViewController:viewController animated:animated];
}


- (UIViewController *)popViewControllerAnimated:(BOOL)animated // Returns the popped controller.
{
//    if (_isBusy)
//        return nil;
//    else
//    {
//        [self ViewCanUserInteractionEnabled];
        return [super popViewControllerAnimated:animated];
 //   }
}


- (NSArray *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated
{
//    [self ViewCanUserInteractionEnabled];
    return [super popToViewController:viewController animated:animated];
}

- (NSArray *)popToRootViewControllerAnimated:(BOOL)animated
{
//    [self ViewCanUserInteractionEnabled];
    return [super popToRootViewControllerAnimated:animated];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
